import time
from selenium import webdriver
from selenium.webdriver.common.by import By
browser = webdriver.Chrome()
browser.maximize_window()
browser.get('https://new.qq.com/search')
time.sleep(1)
browser.find_element(By.XPATH, '//*[@id="root"]/div/div[1]/div[1]/div[1]/div/input').send_keys('人工智能')
browser.find_element(By.XPATH, '//*[@id="root"]/div/div[1]/div[1]/div[1]/div/div').click()
time.sleep(3)
browser.find_element(By.XPATH, '//*[@id="root"]/div/div[1]/div[1]/div[2]/div/ul/li[12]/a').click()
